package com.kws.tool.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kws.common.core.domain.R;
import com.kws.tool.dto.CreateElectrovalenceRq;
import com.kws.tool.dto.QueryElectrovalenceRq;
import com.kws.tool.dto.UpdateElectrovalenceRq;
import com.kws.tool.entity.TbElectrovalence;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface ElectrovalenceManagementService extends IService<TbElectrovalence> {
    Page<TbElectrovalence> queryElectrovalencePage(QueryElectrovalenceRq rq);

    boolean createElectrovalence(CreateElectrovalenceRq rq);

    TbElectrovalence queryElectrovalenceById(Long id);

    boolean updateElectrovalence(UpdateElectrovalenceRq rq);

    boolean deleteElectrovalenceById(Long id);

    R uploadElectrovalence(MultipartFile file,String type) throws IOException;

    R queryElectricityTypeList(String electricityType);

    R queryVoltageLevelList(String voltageLevel);
}
